#include"Message_queue.hpp"
#include"ChainOfResponsibility.hpp"

int main()
{
    Server srv;
    HanderEntry he;
    he.EnableHandler(false,true,true);

    while(true)
    {
        std::string text; 
        srv.Recv(MSG_TYPE_CLIENT, text);
        std::cout << "Receive: " << text << std::endl;
        if(text == "exit")
            break;
        he.Run(text);
    }
    return 0;
}